package com.miplus.ccrm.core.service.strategy;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.yulichang.base.MPJBaseService;
import com.miplus.ccrm.common.CmdResVo;
import com.miplus.ccrm.core.controller.vo.LabelResVo;
import com.miplus.ccrm.core.controller.vo.strategy.ScriptEditVo;
import com.miplus.ccrm.core.controller.vo.strategy.ScriptReqVo;
import com.miplus.ccrm.core.controller.vo.strategy.ScriptResVo;
import com.miplus.ccrm.core.pojo.CpScriptTemp;

import java.util.List;

/**
* @author pc
* @description 针对表【CP_SCRIPT_TEMP(画布流程设置模板表)】的数据库操作Service
* @createDate 2024-11-17 14:34:41
*/
public interface CpScriptTempService extends MPJBaseService<CpScriptTemp> {

    IPage<ScriptResVo> scriptList(ScriptReqVo paras);

    CmdResVo buildRobotScript(String scripttxt);

    CmdResVo scriptUpdate(String $usrid, ScriptEditVo paras);

    CmdResVo scriptInsert(String $usrid,ScriptEditVo paras);

    CmdResVo scriptDelete(Integer scriptid);

    ScriptResVo getSciptDetail(Integer tempid);

    List<LabelResVo> getTempList();
}
